<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,validator.js"}

<div class="main-div">
  <form action="" method="post" name="theForm" enctype="multipart/form-data">
    <table cellspacing="1" cellpadding="3" width="100%">
      <tr>
        <td class="label">{$lang.data_package_name}:</td>
        <td><input type="text" name="package_name" value="{$package.name|escape}" size="40" />
        </td>
      </tr>
      <tr>
        <td class="label">{$lang.data_package_type}:</td>
        <td>
		<select name="package_type">
		<option value="taobao" {if $package.type=='taobao'}selected="selected"{/if}>淘宝</option>
		<option value="paipai" {if $package.type=='paipai'}selected="selected"{/if}>拍拍</option>
		</select>
        </td>
      </tr>
	  <tr>
        <td class="label">{$lang.data_package_file}:</td>
        <td> <input type="file" name="package_file" size="35" />
        </td>
      </tr>
	  <tr>
        <td class="label">{$lang.data_package_pai_xu}:</td>
        <td><input type="text" name="pai_xu" value="{$package.paixu|escape}" size="40" />
        </td>
      </tr>
      <tr>
        <td class="label"> {$lang.data_package_description}:</td>
        <td>
          <textarea name="package_description" rows="5" cols="40">{$package.description|escape}</textarea>
        </td>
      </tr>
	  <tr>
        <td class="label">{$lang.data_package_timestamp}:</td>
        <td>{$package.timestamp|escape}
        </td>
      </tr>
	  
      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="package_id" value="{$package.package_id}" />
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
          <input type="hidden" name="act" value="{$form_act}" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--
{literal}
onload = function() {
  document.forms['theForm'].elements['package_name'].focus();
  startCheckOrder();
}

function validate()
{
  var validator = new Validator('theForm');
  validator.required('cat_name', type_name_empty);

  return validator.passed();
}
{/literal}  
//-->
</script>

{include file="pagefooter.htm"}
